package java_file_io_nio2;

import java.nio.file.Path;
import java.nio.file.Paths;

/**
 *
 * @author arif
 */
public class SamplePath {
    public static void pathSimulation() {
        Path path = Paths.get("d:\\backup c\\altova");
        System.out.println("real path : " + path.toString());
        System.out.println("parent path : " + path.getParent());        
        System.out.println("file/folder name : " + path.getFileName());
    }
    
    public static void main(String args[]) {
        pathSimulation();
    }
}
